package com.cn.demo4.dao;

import com.cn.demo4.model.NewsModel;

import java.util.List;

public interface NewsDao {
    List<NewsModel> findAll(NewsModel newsModel);

    int add(NewsModel newsModel);

    NewsModel findById(Integer id);

    int update(NewsModel newsModel);

    int del(Integer id);

    List<NewsModel> getNewsModelListForHome();

    int geCount(NewsModel newsModel);
}
